package com.sunl.mall.ali.mq.topic;

import com.aliyun.openservices.ons.api.bean.Subscription;
import com.sunl.mall.common.api.topic.MqTopic;

public class SubscribeTopic extends Subscription {

    public SubscribeTopic(MqTopic topic) {
        this.setTopic(topic.getTopic());
        this.setType(topic.getType());
        this.setExpression(topic.getExpression());
    }

    @Override
    public int hashCode() {
        return super.hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        return super.equals(obj);
    }
}
